package com.xbongbong.saas.service;

import com.xbongbong.paas.pojo.dto.SaasFormSaveDTO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.flowbill.dto.FlowBillInsertDTO;
import com.xbongbong.saas.domain.entity.StockFlowBillUpdateEntity;

import java.util.List;

/**
 * 产品流水信息接口
 *
 * @author lee
 * @date 19:07 2020/1/15
 * @since v1.0
 **/
public interface StockFlowBillService extends AccordConfigAddMenuHandle {

    void caculateStockModification4Save(SaasFormSaveDTO saasFormSaveDTO) throws XbbException;

    void caculateStockModification4Delete(List<Long> deleteList, List<StockFlowBillUpdateEntity> stockFlowBillUpdateList, Integer businessType, String corpid) throws XbbException;

    void insertMonthBeforeStockFlow(FlowBillInsertDTO flowBillInsertDTO) throws XbbException;

    /**
     * 同步方法-生成之前的流水
     * @param flowBillInsertDTO
     * @throws XbbException
     */
    void insertBeforeStockFlow(FlowBillInsertDTO flowBillInsertDTO) throws XbbException;

}
